/**
 * 打开新增权限窗口
 * @return
 */
function showAddWin()
{
	var url = "allModForNewPms.action";
	window.showModalDialog(url, null, "dialogWidth =500px;dialogHeight =350px;status=no;resizable=no;" +
	"dialogLeft=350px;dialogTop=200px");
}
/**
 * 新增权限
 * @return
 */
function addPms()
{
	var moduleid = document.getElementById("moduleid").value;
	var pmscode = document.getElementById("pmscode").value;
	var pmsname = document.getElementById("pmsname").value;
	var url = document.getElementById("url").value;
	if(moduleid==""||pmscode==""||pmsname==""||url=="")
	{
		alert("请填写完整！");
		return;
	}else
	{
		opener.location="addPms.action?moduleid="+moduleid+"&pmscode="+pmscode+"&pmsname="+pmsname+"&url="+url;
		window.close();
	}
}
function closeWin()
{
	window.close();
}
/**
 * 检测是否重复
 * @return
 */
function validateSame()
{
	alert("检测是否重复");
}
